<template>
  <div class="header">
      <div class="header-left">
          <div class="iconfont back-icon">&#xe624;</div>
      </div>
      <div class="header-input">
           <span class="iconfont">&#xe632;</span>
          输入城市/景点/游玩景点</div>
        <router-link to='/city'>
            <div class="header-right">
                {{this.city}}
                <span class="iconfont arrow-icon">&#xe6aa;</span>
            </div>
        </router-link>
  </div>
</template>

<script>
export default {
  name: 'Homeheader',
  props: {
    city: String
  }
}
</script>

<style  lang="stylus"   scoped>
    @import '~styles/varibles.styl'
    .header
        display: flex
        line-height: 2.69rem
        background: $bgColor
        color #fff
        .header-left
            height: 2rem
            float: left
            .back-icon
                text-align: center
                font-size: .8rem
        .header-input
            flex: 1
            line-height: 1.89rem
            margin-left: .5rem
            margin-right: .8rem
            margin-top: .4rem
            margin-bottom: .4rem
            padding: .2rem
            background: #fff
            border-radius:.2rem
            color:#ccc
        .header-right
            widows 1.24rem
            float: right
            text-align: center
            color: #fff
            .arrow-icon
                margin-left: -.3rem
</style>
